import person.Language;
import person.TelecomType;
import person.address.AddressType;
import person.address.Country

class BootStrap {

    def init = { servletContext ->
		
		Language l = new Language();
		l.name = 'Nederlands';
		l.languageCode = 'NL';
		l.save();
		
		Language l2 = new Language();
		l2.name = 'Duits';
		l2.languageCode = 'DE';
		l2.save();
		
		TelecomType tt = new TelecomType();
		tt.name = 'E-mail';
		tt.save();
		
		TelecomType tt2 = new TelecomType();
		tt2.name = 'GSM';
		tt2.save();
		
		TelecomType tt3 = new TelecomType();
		tt3.name = 'Website';
		tt3.save();
		
		TelecomType tt4 = new TelecomType();
		tt4.name = 'Fax';
		tt4.save();
		
		TelecomType tt5 = new TelecomType();
		tt5.name = 'Telefoon';
		tt5.save();
		
		Country c = new Country();
		c.name = 'Belgie'
		c.countryCode = 'BE';
		c.save();
		
		Country c2 = new Country();
		c2.name = 'Duitsland'
		c2.countryCode = 'DE';
		c2.save();
		
		AddressType at = new AddressType();
		at.name = 'Verzending'
		at.save();
		
		AddressType at2 = new AddressType();
		at2.name = 'Facturatie'
		at2.save();
    }
    def destroy = {
    }
}
